<template>
  <div class="contribution_container">
    <img
      @click="store.isContrib = false"
      class="clos_ico cur_poi"
      src="../assets/close_head.png"
      alt=""
    />
    <div class="inner_bg">
      <img src="../assets/contrib_1.png" alt="" />
      <img src="../assets/contrib_2.png" alt="" />
      <img src="../assets/contrib_3.png" alt="" />
    </div>

    <div class="num3_contianer fff">
      <div class="num3" v-for="item in store.contribuInfo?.arr1" :key="item.id">
        <div>
          <div class="nickN fs_14">{{ item.nickname }}</div>
          <div class="icons">xx</div>
        </div>
        <div style="color: #44e1f3" class="right fs_12">{{ item.score }}</div>
      </div>
    </div>
    <div class="list fff bs_bdb">
      <div
        class="inner_list flex_row"
        v-for="(item, i) in store.contribuInfo?.arr2"
        :key="i"
      >
        <div class="left flex">
          <div class="fs_18">{{ i + 1 }}</div>
          <div class="img_box bd_radio">
            <img
              style="width: 100%; height: 100%"
              :src="item.headimgurl"
              alt=""
            />
          </div>
          <div>
            <div class="nickN fs_16">{{ item.nickname }}</div>
            <div class="icons">xx</div>
          </div>
        </div>
        <div class="right">{{ item.score }}</div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useCounterStore } from "../store";
import { getPaihang } from "../http";
import { onMounted, watch } from "vue";
const store = useCounterStore();

onMounted(() => {});
</script>

<style scoped lang="scss">
.contribution_container {
  .clos_ico {
    position: absolute;
    top: -9px;
    right: -8px;
    border: 1px solid #212121;
    border-radius: 50%;
    right: right;
    width: 20px;
    background: #212121;
  }
  .clos_ico:active {
    box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.3);
  }
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-image: url("../assets/contrib_bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  object-fit: contain;
  width: 398px;
  height: 584px;
  border-radius: 0px 0px 0px 0px;
  .inner_bg {
    z-index: 11;
    width: 381px;
    height: 175px;
    position: absolute;
    top: 186px;
    left: 50%;
    transform: translate(-50%);
    background-image: url("../assets/contrib_123_bg.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    justify-content: space-around;
    img:first-child {
      width: 94px;
      height: 72px;
      margin-top: -20px;
    }
    img:nth-child(2) {
      width: 128px;
      height: 98px;
      margin-top: -59px;
    }
    img:last-child {
      width: 94px;
      height: 72px;
      margin-top: -20px;
    }
  }
  .num3_contianer {
    position: absolute;
    top: 248px;
    z-index: 9999;
    width: 100%;
    justify-content: space-around;
    display: flex;
    .num3 {
      text-align: center;
      width: 33.3%;
    }
    .num3:nth-child(2) {
      margin-top: -20px;
    }
  }
  .list {
    margin-top: 20px;
    overflow: auto;
    position: absolute;
    top: 308px;
    left: 50%;
    transform: translate(-50%);
    // border: 1px solid red;
    width: 100%;
    height: 276px;
    background: #212121;
    padding: 22px 17px;

    border-radius: 0px 0px 0px 0px;

    .inner_list {
      justify-content: space-between;
      align-items: center;
    }
    .inner_list:not(:last-child) {
      margin-bottom: 23px;
    }
    .num3 {
      position: absolute;
    }
    .left {
      color: #939596;
      font-family: PangMenZhengDaoBiaoTiTiMianFeiBan-4,
        PangMenZhengDaoBiaoTiTiMianFeiBan-4;
      font-weight: 400;

      // border: 1px solid red;
      .img_box {
        width: 54px;
        height: 54px;
        background: #ffffff;
        margin-left: 18px;
        margin-right: 12px;
      }
    }
    .right {
      color: #44e1f3;
    }
  }
}
</style>
